#include"process.h"
#include<stdio.h>
#define MAX 101
#include<string.h>
#define ch1 '#'
#include<windows.h>
void process()
{
	const char* str = "|/-\\";
	int len = strlen(str);
	char bar[MAX];
	memset(bar, '\0', sizeof(bar));
	int cnt = 0;
	while (cnt <= 100)
	{
		printf("[%-100s][%d%%][%c]\r", bar, cnt, str[cnt % len]);
		fflush(stdout);
		bar[cnt] = ch1;
		++cnt;
		Sleep(20);
	}
	printf("\r\n");
}
int main()
{
	process();
	return 0;
}
